"use strict"

import request from '@/utils/request.js'
// 新增标签
export function addLabel(data){
    return request({
        url:"business/label",
        method:"post",
        data:data
    })
}
// 修改标签
export function updateLabel(data){
    return request({
        url:"business/label",
        method:"put",
        data:data
    })
}
// 删除标签
export function delLabel(query){
    return request({
        url:"business/label",
        method:"delete",
        data:query
    })
}
// 获取标签详细信息
export function getLabel(id){
    return request({
        url:"/business/label/"+id,
        method:"get"
    })
}

// 查询标签列表
export function getLabelList(query){
    return request({
        url:"/business/label/list",
        method:"get",
        params:query
    })
}
